<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var arr = [];
			 for(i = 0;i < 20 ;i++){
				 arr.push(paresInt(Math.random()*100));
			 }
			 
			 var arr1 = arr.slice(0,10);
			 
			 arr1.sort(function(x,y){return x-y})
			 
			 var arr2 = arr.slice(11,20);
			 arr2.sort(function(x,y){return y-x})
			 
			 
			 var arr3 = arr1.concat(arr2);
			 console.log(arr3);
			 
			 
		</script>
	</head>
	<body>
	</body>
</html>
